/** 
 * 
	设备接口
*/

import {http} from '@/utils/http';

/* 分页获取我的设备 */
export const getMyDevicePage = (params) => http({
	url: '/mes/dv/machinery/page',
	params,
});

/* 根据id查询设备 */
export const findIdDevice = (params) => http({
	url: '/mes/dv/machinery/get',
	params,
});

/* 新增设备维修单 */
export const createPepairOrder = (data) => http({
	url: '/mes/dv/repair/create',
	method: 'POST',
	data
})

/* 更新设备维修单 */
export const updatePepairOrder = (data) => http({
	url: '/mes/dv/repair/update',
	method: 'PUT',
	data
})

/* 分页查询设备 */
export const getRepairPage = (params) => http({
	url: '/mes/dv/repair/page',
	params,
}) 

/* 获取设备报修单 */
export const getRepairOrder = (params) => http({
	url: '/mes/dv/repair/get',
	params,
}) 

/* 获取设备维修单行 */
export const getListByRepairId = (params) => http({
	url: '/mes/dv/repair/repair-line/list-by-repair-id',
	params,
}) 